/ Assembly List / LJCNetCommon / NetCommon / TextToBase64Bytes

Namespace - LJCNetCommon


Parameters
text - The Text value.

Returns

Tye Base64 byte array.

Syntax

C#
public static Byte[] TextToBase64Bytes(String text)

Encodes a Text value to a Base64 byte array. (E)

Example

C#
using LJCNetCommon;
        
// Encodes a Text value to a Base64 byte array.
private static void TextToBase64Bytes()
{
  // Create Text from Base64 byte array.
  byte[] base64Bytes = NetCommon.TextToBase64Bytes("Text");

  // Check the text.
  string text = NetCommon.Base64BytesToText(base64Bytes);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.